using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using AutoGear.BLL;

public partial class admin_newsletter_print : SiteAdminBasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            PrintPage();
        }
    }

    protected void PrintPage()
    {
        try
        {
            if (Page.Request.QueryString["id"] != null && !string.IsNullOrEmpty(Page.Request.QueryString["id"].ToString()))
            {
                int id = int.Parse(Page.Request.QueryString["id"].ToString());
                Newsletter newsletter = Newsletter.Load(id);
                ltlContent.Text = newsletter.Body;
                //Response.Write(newsletter.Body);
                //Response.End();
            }
        }
        catch { }
    }
}
